﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WinFormsApp1.Common
{
    public class ApiResult<T>
    {
        /// <summary>
        /// 响应码
        /// </summary>
        public int Code { get; set; }
        /// <summary>
        /// 返回值
        /// </summary>
        public T Data { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }
    }
    public class ApiResultFY1<T>
    {
        /// <summary>
        /// 响应码
        /// </summary>
        public int Code { get; set; }
        /// <summary>
        /// 返回  元组
        /// </summary>
        public Paging<T> Data { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }
    }
    public class Paging<T>
    {
        ///// <summary>
        ///// 起始页
        ///// </summary>
        //public int pageindex { get; set; }
        ///// <summary>
        ///// 页容量
        ///// </summary>
        //public int pagesize { get; set; }
        /// <summary>
        /// 总条数
        /// </summary>
        public int totalcount { get; set; }
        /// <summary>
        /// 总页数
        /// </summary>
        public int pagecount { get; set; }
        /// <summary>
        /// 数据集合
        /// </summary>
        public T list { get; set; }
    }
    public class ApiResultFY2<T>
    {
        /// <summary>
        /// 响应码
        /// </summary>
        public int Code { get; set; }
        /// <summary>
        /// 返回  元组
        /// </summary>
        public Paging1<T> Data { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }
    }
    public class Paging1<T>
    {
        ///// <summary>
        ///// 起始页
        ///// </summary>
        //public int pageindex { get; set; }
        ///// <summary>
        ///// 页容量
        ///// </summary>
        //public int pagesize { get; set; }
        /// <summary>
        /// 总条数
        /// </summary>
        public int totalCount { get; set; }
        /// <summary>
        /// 总页数
        /// </summary>
        public int totalPage { get; set; }
        /// <summary>
        /// 数据集合
        /// </summary>
        public T list { get; set; }
    }
    



}
